<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> Promotion 2012/2013 Master II Hypermedia </title>
</head>
<body>
<p><center><u>Trombinoscope Promotion 2012/2013 Master II Hypermedia<br><hr> <A HREF=" www.kahinameftahi.com">
<img src="http://www.afnic.fr/medias/images/paris_8.jpg" width="300" height="80"></a></u></p>
<embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="288" height="192" flashvars="host=picasaweb.google.com&hl=fr&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F113848708930851956597%2Falbumid%2F5795380358275112865%3Falt%3Drss%26kind%3Dphoto%26hl%3Dfr" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</center>

<form method="POST" action="Enregistrement.php">
<p>Nom<p>
<input type="text" name="Nom"/>
<p>Prenom</p>
<input type="text" name="Prenom"/>
<p>Etat</p>
<input type="text" name="Etat"/>

<input type="submit" name="submit" value="Valider"/>

</form>
<br>
<?php
if(isset($_POST['submit']))
	{
	$Nom = htmlspecialchars(trim($_POST['Nom']));
	$Prenom = htmlspecialchars(trim($_POST['Prenom']));
	$Etat = htmlspecialchars(trim($_POST['Etat']));
	if($Nom&&$Prenom&&$Etat)
		{
 
		$connect= mysql_connect("localhost","root","");
		mysql_select_db('EnregistrementTrombino');
		$Enr = mysql_query("INSERT INTO etudiant VALUES('$Nom','$Prenom','$Etat')");
 
		}
	else echo"Veuillez saisir tous les champs SVP.";
 
	}

?>
</body>
</html>